#ifndef QDEVICEFANCTABWIDGET_H
#define QDEVICEFANCTABWIDGET_H

#include "../fancytabwidget.h"

#include <QWidget>

class QDeviceFancTabWidget : public QWidget
{
    Q_OBJECT

public:
    QDeviceFancTabWidget(QWidget *parent = 0);
    void insertTab(int index, QWidget *tab, const QIcon &icon, const QString &label);
    void paintEvent(QPaintEvent *event);
signals:
    void currentChanged(int index);
public slots:
    void setCurrentIndex(int index);
    void showWidget(int index);
private:
    FancyTabBar     *m_tabBar;
    QStackedLayout  *m_modesStack;
    QWidget         *m_selectionWidget;
};

#endif // QDEVICEFANCTABWIDGET_H
